package com.msb.sentinelOpenfeign.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;

/****************************************************
 *
 *
 * @author lbf
 * @date 2025/6/27 15:24
 ****************************************************/
public class RibbonIRuleConfig {

    /**
     * 配置Ribbon 负载均衡策略，这里配置的是随机策略
     * @return
     */
    @Bean
    public IRule ribbonRule(){
        return new RandomRule();
    }
}
